const mock = require('mockjs')
const random = mock.Random

module.exports = [
    {
        url:'/api/user/login',
        method:'post',
        response(){
            return {
                error:0,
                data:{
                    token:'monihouduandetoken'
                }
            }
        }
    },
    {
        url:'/api/user/register',
        method:'post',
        response(){
            return {
                error:0,
                data:null
            }
        }
    },
    {
        url:'/api/user/info',
        method:'get',
        response(){
            return {
                error:0,
                data:{
                    username:random.cname(),
                    nickname:random.title(),
                }
            }
        }
    }
]